home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / programs / cel141.zip / CEL141C.ZIP / SMTBAT11.ZIP / SMARTBAT.DOC < prev    next >
Text File  |  1992-06-01  |  4KB  |  122 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                ─────────────────────────────────────────────
  7.                           SmartBat.Exe Version 1.1
  8.                             Written by Rasta Mon
  9.                              PaperThin Software
  10.                               SysOp of Nirvana
  11.                                NO Stinkin NUP
  12.                                 713-931-7778
  13.                                   HST Dual
  14.                                    2 Nets
  15.                                     GIGs
  16.                ─────────────────────────────────────────────
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. DESCRIPTION:
  26.  
  27. SMARTBAT.EXE is a little utility I wrote to overcome some flexibility
  28. problems in Celerity 1.40's Event Execution.
  29.  
  30. SmartBat.Exe along with the EVENT.BAT file included with this package, will
  31. allow you to run specific events on any given day of the week.  If you are
  32. familiar with Celerity then you know that you can define a time for an external
  33. event to occur in the SETUP.   This will trigger a file called EVENT.BAT at
  34. the time you specify.  HOWEVER, you cannot tell it what days to run, only
  35. what time, which means it runs every day at the time you set, thus the need
  36. for SmartBat.Exe
  37.  
  38. If you want specific things to run only on specific days, says for instance
  39. you only want to back up your system on Mon, Wed, Sat,  then you can use
  40. SmartBat to get it done.
  41.  
  42.  
  43.  
  44. REVISION HISTORY:
  45.  
  46. Version 1.0  Initial release.
  47.  
  48. Version 1.1  Add /W switch to allow the sysop to force a 60 second delay.
  49.              Seems that Celerity 1.40 will continually execute the EVENT.BAT
  50.              file over and over as long as the DOS time hasn't changed.
  51.  
  52.                            ----------*-----------
  53.  
  54.  
  55.  
  56. OPERATION:
  57.  
  58. It's so simple it's ridiculous.  Just run SmartBat and it pokes the number
  59. corresponding to the day of the week, into the Dos ERRORLEVEL so EVENT.BAT
  60. can detect it and go from there.
  61.  
  62. Run it in your batch file AS THE FIRST COMMAND.  This will set the day for
  63. the batch file to look at.  RUN IT AGAIN AT THE END OF THE BATCH FILE IF
  64. your event.bat execution takes less than 1 minute.  This will overcome an
  65. error in Celerity that continually runs the event.bat until the DOS time
  66. has changed.
  67.  
  68. USE THE /W switch to force a 60 second delay.  this will be enough for the
  69. DOS time (minute) to change and Celerity WILL NOT rerun the event.bat
  70.  
  71. If you don't know why I included this switch then set your event to run
  72. right away and WATCH. If it runs real quick (like mine) you'll see Cel
  73. run it over and over until the time changes.
  74.  
  75.  
  76.  
  77. Examine the included EVENT.BAT file and customize it anyway you want.
  78.  
  79. EXAMPLE EVENT.BAT:
  80. ------------------
  81.  
  82. REM run smartbat first
  83. SMARTBAT
  84.  
  85. REM these numbers MUST be in decending order!!
  86. IF ERRORLEVEL 7 GOTO SUNDAY
  87. IF ERRORLEVEL 6 GOTO SATURDAY
  88. IF ERRORLEVEL 5 GOTO FRIDAY
  89. IF ERR.....etc etc
  90.  
  91. :SUNDAY
  92. REM freshen the bbs backup every monday
  93. arj f -r C:\BBSBACK\CeleBack D:\CELERITY\*.*
  94. GOTO Bottom
  95.  
  96. :SATURDAY
  97. REM move my old files to C: drive (offline to Celerity) every Tuesday
  98. Xcopy D:\DOWN\GOINGOFF\*.* C:\OFFLINE\
  99. Goto BOTTOM
  100.  
  101. :FRIDAY
  102.  
  103. ...etc etc
  104.  
  105. :BOTTOM
  106. REM Make it wait one minute
  107. SMARTBAT /W
  108. MAIN
  109. EXIT
  110.  
  111.  
  112.  
  113. Is this easy or what?  GO FOR IT.
  114.  
  115. Celerity kicks ass and is gettin better all the time.....
  116.  
  117. THIS PROGRAM IS FREEWARE AND MAY BE USED WITH ANY TYPE OF APPLICATION YOU WISH
  118. TO INCORPORATE IT INTO.  DISTRIBUTE AND MODIFY FREELY.  SOURCE CODE INCLUDED.
  119.  
  120. END OF DOCUMENT
  121.  
  122.